<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Feed
 * @version 		$Id: display.html.php 4176 2012-05-16 10:49:38Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
{if count($aItems) > 0}
    {if PHPFOX_IS_AJAX}
    <div class="block block_ajax survey_contents" id="js_survey_contents">
        <div class="content">
    {/if}
        {foreach from=$aItems item=aSurvey}
            {template file='survey.block.item.row' bIsMini=1}
        {/foreach}
        {if $iCnt > count($aItems)}
            {if !PHPFOX_IS_AJAX}
                <div class="clear"></div>
                <div class="viewmore">
                    <a href="" onclick="tb_show('Your topic',$.ajaxBox('survey.yourFollowing')); return false;" class="button_off_link">View more</a>
                </div>
                <div class="clear"></div>
            {else}
                <div class="view_more">
                    {pager}
                </div>
            {/if}
        {/if}
    {if PHPFOX_IS_AJAX}
        </div>
    </div>
    {/if}
{else}
    No item.
{/if}